#include "stdafx.h"
#include "MeshInstance.h"

#include "Material.h"
#include "RenderingSystem.h"

using namespace mgfx;

MeshInstance* MeshInstance::copy() const
{
	return System->createMeshInstanceCopy(*this);
}

void MeshInstance::init( Mesh & mesh, Material & material )
{
	Mesh_ = &mesh;
	Material_ = &material;

	Type = MESH_INSTANCE;
}
